<as-split direction="vertical" unit="pixel" [disabled]="true" gutterSize="0">
  <as-split-area size="35" class="button-area">
    <button nz-button (click)="create()">
      <i nz-icon nzType="plus" nzTheme="outline"></i>新建
    </button>
    <button nz-button (click)="reflesh()"><i nz-icon nzType="reload" nzTheme="outline"></i>刷新</button>
  </as-split-area>
  <as-split-area class="border-1 form-area" size="100">
    <div nz-row class="text-right matech-toolbar">
      <div nz-col nzSpan="21">
        <form nz-form>
          <div nz-row nzType="flex" nzJustify="end">
            <nz-form-label nz-col nzSpan="2" class="text-right">所属年度</nz-form-label>
            <nz-form-control nz-col nzSpan="4" class="text-right">
              <nz-year-picker [(ngModel)]="queryParams.year" name="year" [nzFormat]="'yyyy' + '年度'"
                nzPlaceHolder="请选择起始年份">
              </nz-year-picker>
            </nz-form-control>
            <nz-form-label nz-col nzSpan="2" class="text-right">所属学期</nz-form-label>
            <nz-form-control nz-col nzSpan="4" class="text-right">
              <nz-select [(ngModel)]="queryParams.termType" name="termType" nzAllowClear nzPlaceHolder="请选择学期">
                <nz-option nzValue="LAST_TERM" nzLabel="第一学期"></nz-option>
                <nz-option nzValue="NEXT_TERM" nzLabel="第二学期"></nz-option>
              </nz-select>
            </nz-form-control>
            <nz-form-label nz-col nzSpan="2" class="text-right">课程名称</nz-form-label>
            <nz-form-control nz-col nzSpan="4" class="text-right">
              <input nz-input placeholder="请输入课程名称" maxlength="100" name="courseName"
                [(ngModel)]="queryParams.courseName" />
            </nz-form-control>
            <nz-form-label nz-col nzSpan="2" class="text-right">授课老师</nz-form-label>
            <nz-form-control nz-col nzSpan="4" class="text-right">
              <input nz-input placeholder="请输入教师名称" maxlength="100" name="teacherName"
                [(ngModel)]="queryParams.teacherName" />
            </nz-form-control>
          </div>

          <div nz-row nzType="flex" nzJustify="start">
            <nz-form-label nz-col nzSpan="2" class="text-right">修读状态</nz-form-label>
            <nz-form-control nz-col nzSpan="4" class="text-right">
              <nz-select [(ngModel)]="queryParams.studyStatus" name="isOpen" nzAllowClear nzPlaceHolder="请选择修读状态">
                <nz-option [nzValue]="'SELECKED_CLASS'" nzLabel="已选未修"></nz-option>
                <nz-option [nzValue]="'OPEN_CLASS' " nzLabel="在修未结课"></nz-option>
                <nz-option [nzValue]="'END_CLASS' " nzLabel="已结课"></nz-option>
              </nz-select>
            </nz-form-control>
          </div>
        </form>
      </div>
      <div nz-col nzSpan="3" class="text-center form-area-btn">
        <div nz-row class="first-btn">
          <button nz-button (click)="onSearch()" [nzType]="'primary'"><i nz-icon nzType="search"></i>查找</button>
        </div>
        <div nz-row class="second-btn">
          <button nz-button (click)="onResetForm()"><em nz-icon nzType="redo" nzTheme="outline"></em>重置</button>
        </div>
      </div>
    </div>
  </as-split-area>
  <as-split-area [size]="'*'">
    <app-student-course-list #studentCourseListComponent [queryParams]="queryParams"></app-student-course-list>
  </as-split-area>
</as-split>
